package cn.edu.neu.springbootdemo.service.impl;

import cn.edu.neu.springbootdemo.mapper.MovieMapper;
import cn.edu.neu.springbootdemo.model.Movie;
import cn.edu.neu.springbootdemo.model.User;
import cn.edu.neu.springbootdemo.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MovieServiceImpl implements MovieService {
    @Autowired
    private MovieMapper mapper;

    @Override
    public List<Movie> showMovieList() {
        return mapper.showMovieList();
    }

    @Override
    public void addMovie(Movie movie) {
        mapper.addMovie(movie);
    }

    @Override
    public Boolean deleteMovie(int parseInt) {
        return mapper.deleteMovie(parseInt);
    }

    @Override
    public List<Movie> getfindMovie(Movie movie) {
        return mapper.getfindMovie(movie);
    }

    @Override
    public Movie findById(int film_id) {
        return mapper.findById(film_id);
    }

    @Override
    public void updateMovie(Movie movie) {
        mapper.updateMovie(movie);
    }
}
